<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
</head>
<body>
  <form method="post">
  {% csrf_token %}
     学生姓名:<input type="text" name="stu_name"><br>
     假条事由:<input type="text" name="status"><br>
     请假时间:<input type="date" name="createTime"><br>
     请假类型:
      <select name='tid'>
          {% for i in leavec %}
              <option value="{{ i.id }}">{{ i.tname }}</option>
          {% endfor %}
      </select>
     <input type="submit" value="添加"><br>
  </form>
</body>
</html>